Skip to main content

SetDeletionProtection

Description

call the SetDeletionProtection interface to modify the delete protection attribute of the resource stack.

Request Method

POST

Request Path

/apsara/route/ROS/SetDeletionProtection

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
DeletionProtectionBODYstringYesEnabledwhether to enable stack deletion protection, value: Enabled: enable stack deletion protection. Disabled (default): turn off stack deletion protection. At this time, the resource stack can be released through the console or API(DeleteStack). description nested resource stack deletion protection is consistent with the root resource stack.
RegionIdBODYstringYescn-hangzhouthe region ID to which the resource stack belongs.
versionBODYstringNo2016-01-01version of api
StackIdBODYstringYes4a6c9851-3b0f-4f5f-b4ca-a14bf691****resource stack ID. The deletion protection attribute of the nested resource stack is determined by the root resource stack, is always consistent with the root resource stack, and cannot be modified.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}